home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / pmake / customs / log.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-15  |  1.5 KB  |  48 lines

  1. /*-
  2.  * log.h --
  3.  *    Header file for programs that use the log facilities of the
  4.  *    customs daemon.
  5.  *
  6.  * Copyright (c) 1988, 1989 by the Regents of the University of California
  7.  * Copyright (c) 1988, 1989 by Adam de Boor
  8.  * Copyright (c) 1989 by Berkeley Softworks
  9.  *
  10.  * Permission to use, copy, modify, and distribute this
  11.  * software and its documentation for any non-commercial purpose
  12.  * and without fee is hereby granted, provided that the above copyright
  13.  * notice appears in all copies.  The University of California,
  14.  * Berkeley Softworks and Adam de Boor make no representations about
  15.  * the suitability of this software for any purpose.  It is provided
  16.  * "as is" without express or implied warranty.
  17.  *
  18.  *    "$Id: log.h,v 1.4 89/11/14 13:46:29 adam Exp $ SPRITE (Berkeley)"
  19.  */
  20. #ifndef _LOG_H_
  21. #define _LOG_H_
  22.  
  23. /*
  24.  * XDR functions are used in the communication between customs and a loggin
  25.  * process to obviate any byte-ordering differences.
  26.  */
  27. #include    <rpc/types.h>
  28. #include    <rpc/xdr.h>
  29.  
  30. enum {
  31.     LOG_START,          /* Job started */
  32.     LOG_FINISH,          /* Job finished */
  33.     LOG_STOPPED,      /* Job stopped */
  34.     LOG_NEWAGENT,     /* New agent registered */
  35.     LOG_NEWMASTER,    /* New master elected */
  36.     LOG_ACCESS,          /* Illegal access attempted */
  37.     LOG_EVICT,          /* You are dead meat */
  38.     LOG_KILL,          /* Job was killed */
  39.     LOG_EXITFAIL,     /* Couldn't send EXIT */
  40. } Log_Procs;
  41.  
  42. extern bool_t      xdr_exportpermit();
  43. extern bool_t      xdr_in_addr();
  44. extern bool_t      xdr_sockaddr_in();
  45. extern bool_t      xdr_strvec();
  46.  
  47. #endif _LOG_H_
  48.